
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            @foreach($menus as $menu)
                @if($menu['child'] == '')
            <li class="list" current>
                <a href="{{ url('$menu[url]') }}">
                    <i class="iconfont">&#xe761;</i>
                    {{ $menu['name'] }}
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
            </li>
                @else
            <li class="list">
                <a href="javascript:;">
                    <i class="iconfont">&#xe70b;</i>
                    {{ $menu['name'] }}

                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                @foreach($menu['child'] as $child)
                <ul class="sub-menu">
                    <li>
                        <a href="{{ url($child -> url) }}">
                            <i class="iconfont">&#xe6a7;</i>
                                {{ $child -> name }}
                        </a>
                    </li>

                </ul>
                @endforeach
                @endif
            </li>
            @endforeach

        </ul>
    </div>
</div>